package com.telecom.pojo.entity;

import java.math.BigDecimal;

import java.time.LocalDateTime;
import java.io.Serializable;

import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 充值记录表
 * </p>
 *
 * @author GWX.cz
 * @since 2025-07-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Builder
public class RechargeRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID (主键，自动增长)
     */
    private Long id;

    /**
     * 交易ID (唯一)
     */
    private String transactionId;

    /**
     * 用户ID，关联 user 表
     */
    private Long userId;

    /**
     * 充值金额
     */
    private BigDecimal amount;

    /**
     * 充值时间
     */
    private LocalDateTime rechargeTime;

    /**
     * 状态(0:SUCCESS 1:FAILED 2:PROCESSING)
     */
    private Integer status;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;


}
